package thefirst.controller;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import thefirst.code.model.CodeService;
import thefirst.code.model.CodeVO;

@Controller
public class CodeController {
	@Resource(name="codeServiceImpl")
	private CodeService codeService;
	@RequestMapping("/findGenderByCode.do")
	@ResponseBody
	public List<CodeVO> findGenderByCode() throws SQLException{
		List<CodeVO> cList=codeService.findGenderByCode();
		System.out.println(cList);
		return cList;
	} 
}
